home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / nret.cpp < prev    next >
C/C++ Source or Header  |  1994-10-10  |  217b  |  15 lines

  1. #include "nret.h"
  2.  
  3. int nRet(char* string)
  4.     {
  5.     char* str = string;
  6.     int j = 0;
  7.     for(int i = 0; str[i]; i++)
  8.     {
  9.     if(str[i] == '\n')
  10.         j++;
  11.     }
  12.     return j;
  13.     }
  14. ///////////////////////////
  15.